/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.suarte.core.service.impl;

import com.suarte.core.Employee;
import com.suarte.core.dao.EmployeeDao;
import com.suarte.core.service.EmployeeManager;
import org.appfuse.service.impl.GenericManagerImpl;

import java.util.List;

/**
 * @date   Feb 21, 2010
 * @author Ggutierrez
 */
public class EmployeeManagerImpl extends GenericManagerImpl<Employee, Long> implements EmployeeManager {
    EmployeeDao employeeDao;

    public EmployeeManagerImpl(EmployeeDao employeeDao) {
        super(employeeDao);
        this.employeeDao = employeeDao;
    }

    @Override
    public Employee get(Long id) {
        return employeeDao.get(id);
    }

    public List<Employee> findByNames(String lastName) {
        return employeeDao.findByNames(lastName);
    }

    public Employee get(String username) {
        return employeeDao.get(username);
    }
}
